package com.naiterui.ehp.bp.domain;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 互联网医院时间实体
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 15-6-24
 * Time: ����10:32
 * To change this template use File | Settings | File Templates.
 */
@Table(name = "dr_bay_consult")
@Entity
public class DrBayConsult implements java.io.Serializable {
    private static final long serialVersionUID = 5505724109868084635L;
    private long id;
    private Long doctorId;
    private int weekIndex;
    private String work;

    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", nullable = false, insertable = true, updatable = true, length = 19, precision = 0)
    @Id
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Column(name = "doctor_id", nullable = true, insertable = true, updatable = true, length = 19, precision = 0)
    @Basic
    public Long getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(Long doctorId) {
        this.doctorId = doctorId;
    }

    @Column(name = "week_index", nullable = false, insertable = true, updatable = true, length = 10, precision = 0)
    @Basic
    public int getWeekIndex() {
        return weekIndex;
    }

    public void setWeekIndex(int weekIndex) {
        this.weekIndex = weekIndex;
    }

    @Column(name = "work", nullable = true, insertable = true, updatable = true, length = 200, precision = 0)
    @Basic
    public String getWork() {
        return work;
    }

    public void setWork(String work) {
        this.work = work;
    }

}
